<section class="content-header">
    <h1>
        IPPI Admin Page
        <small>Gallery</small>
    </h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div id="msg" class="alert alert-danger alert-dismissable">
                <i class="fa fa-ban"></i>
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">�</button>
                <b>Alert!</b> Danger alert preview. This alert is dismissable. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
            </div>
        </div>
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Gallery Data Video</h3>                                    
                </div><!-- /.box-header -->
                <div class="box-body table-responsive">
                    <table id="example2" class="table table-striped">
                        <thead>
                            <tr>
                                <th style="width: 30px;">No &nbsp;</th>
                                <th class="text-center">Title </th>
                                <th class="text-center">Thumbnail </th>
                                <th class="text-center">Date Created </th>
                                <th class="text-center">Action </th>
                            </tr>
                        </thead>
                        <tbody>
                        
                        <?php
                        $i=1;
                        foreach($list_data as $r):
                        ?>
                            <tr>
                                <td><?php echo $i++;?></td>
                                <td><?php echo $r->title;?></td>
                                <td><img src="<?php echo base_url($r->thumb);?>" style="max-height: 50px;" /></td>
                                <td class="text-center">
                                    <?php
                                    $newDate = date("d M Y <b>h:m:s<b>", strtotime($r->datecreated));
                                    echo $newDate;
                                    ?>
                                </td>
                                <td class="text-center">
                                    <a class="btn btn-xs btn-info" href="<?php echo site_url();?>admin_gallery/detail/<?php echo $r->id;?>">det</a>
                                    <a class="btn btn-xs btn-warning delete_gallery" href="" data-id="<?php echo $r->id; ?>">del</a>
                                </td>
                            </tr>
                        <?php
                        endforeach;
                        ?>
                        </tbody>
                    </table><!-- /.table -->
                </div>
            </div>
            <a href="<?php echo site_url()?>admin_gallery/add_video" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i>&nbsp;&nbsp;Add New Video</a>
        </div>
    </div>
</section>
    <?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

